﻿<%@ Page Language="C#" MasterPageFile="~/admin/admin.Master" AutoEventWireup="true" CodeBehind="QLTK.aspx.cs" Inherits="TemplateH4.Admin.QLTK" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
    Quản lý tài khoản</p>
    <p>
        <asp:GridView ID="dstk" runat="server" CellPadding="10" 
            GridLines="Horizontal" AllowPaging="True" AllowSorting="True" 
            DataKeyNames="UserId" DataSourceID="AdminLinqDataSource" 
            onselectedindexchanged="dstk_SelectedIndexChanged" 
            AutoGenerateColumns="False" BackColor="White" BorderColor="#003399" 
            BorderStyle="Solid" BorderWidth="1px" CellSpacing="5" HorizontalAlign="Center" 
            Width="100%">
            <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
            <Columns>
                <asp:BoundField DataField="UserId" HeaderText="UserId" 
                    SortExpression="UserId" ReadOnly="True" />
                <asp:BoundField DataField="MobilePIN" HeaderText="Điện thoại" 
                    SortExpression="MobilePIN" />
                <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
                <asp:CheckBoxField DataField="IsApproved" HeaderText="Còn hoạt động" 
                    SortExpression="IsApproved" />
                <asp:CheckBoxField DataField="IsLockedOut" HeaderText="Đang bị khóa" 
                    SortExpression="IsLockedOut" />
                <asp:BoundField DataField="CreateDate" HeaderText="Ngày tạo" 
                    SortExpression="CreateDate" />
                <asp:CommandField ShowEditButton="True" />
            </Columns>
            <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
            <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
            <AlternatingRowStyle BackColor="#F7F7F7" />
        </asp:GridView>
        <asp:LinqDataSource ID="AdminLinqDataSource" runat="server" 
            ContextTypeName="LinQ_DTO.EFashionDBDataContext" EnableDelete="True" 
            EnableUpdate="True" OrderBy="UserId" 
            TableName="aspnet_Memberships" EnableInsert="True">
        </asp:LinqDataSource>
    </p>
    <p>
        &nbsp;</p>
</asp:Content>
